<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "gky_group_msg".
 *
 * @property string $id
 * @property string $weid
 * @property string $wename
 * @property string $msg
 * @property string $addtime
 * @property string $sendtime
 * @property integer $sendcount
 * @property string $title
 * @property string $media_id
 * @property string $url
 * @property string $imageurl
 */
class GkyGroupMsg extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'gky_group_msg';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['weid', 'sendcount'], 'integer'],
            [['msg'], 'string'],
            [['addtime', 'sendtime'], 'safe'],
            [['wename', 'title', 'media_id'], 'string', 'max' => 256],
            [['url', 'imageurl'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'weid' => 'Weid',
            'wename' => '微信号',
            'msg' => '信息',
            'addtime' => '添加时间',
            'sendtime' => 'Sendtime',
            'sendcount' => 'Sendcount',
            'title' => '标题',
            'media_id' => 'Media ID',
            'url' => 'Url',
            'imageurl' => '图片路径',
        ];
    }
}
